import request from '@/utils/request'

export function projectList(data) {
  return request({
    url: '/api/v1/welder-sbtx-second/project-info-comb/list-project',
    method: 'post',
    data
  })
}

export function projectNumber(data) {
  return request({
    url: '/api/v1/welder-sbtx-second/project-info-comb/count-project',
    method: 'post',
    data
  })
}

// 设备运行状态
export function deviceState(data) {
  return request({
    url: '/api/v1/welder-sbtx-second/hj-datas-comb/device-status',
    method: 'post',
    data
  })
}

// 设备使用率
export function deviceUse(data) {
  return request({
    url: '/api/v1/welder-sbtx-second/hj-datas-comb/device-use-rate',
    method: 'post',
    data
  })
}

export function deviceCharts(data) {
  return request({
    url: '/api/v1/welder-sbtx-second/project-info-comb/count-device-user',
    method: 'post',
    data
  })
}

// 焊口数量
export function weldsCharts(data) {
  return request({
    url: '/api/v1/welder-sbtx-second/welded-joint-info-comb/count-by-project',
    method: 'post',
    data
  })
}

export function pieCharts(data) {
  return request({
    url: '/api/v1/welder-sbtx-second/hj-datas-comb/get-work-efficiency',
    method: 'post',
    data
  })
}

export function inspectList(data) {
  return request({
    url: '/api/v1/welder-sbtx-second/file-management-comb/list',
    method: 'post',
    data
  })
}

export function alarmsList(data) {
  return request({
    url: '/api/v1/welder-sbtx-second/eq-alarm-comb/getList',
    method: 'post',
    data
  })
}

